<?php
// +----------------------------------------------------------------------
// | Description: 基础框架路由配置文件
// +----------------------------------------------------------------------
// | Author: Michael_xu <gengxiaoxu@5kcrm.com>
// +----------------------------------------------------------------------

return [
    // 定义资源路由
    '__rest__'=>[
        // 'crm/customer'		   =>'crm/customer',
    ],
    'crm/import/index' => ['crm/import/index', ['method' => 'get']],//导入
	// 【仪表盘】销售简报
	'crm/index/index' => ['crm/index/index', ['method' => 'POST']],

	// 【客户】列表
	'crm/customer/index' => ['crm/customer/index', ['method' => 'POST']],
	// 【客户】创建
	'crm/customer/save' => ['crm/customer/save', ['method' => 'POST']],
	// 【客户】编辑
	'crm/customer/update' => ['crm/customer/update', ['method' => 'POST']],
	// 【客户】详情
	'crm/customer/read' => ['crm/customer/read', ['method' => 'POST']],
	// 【客户】转移
	'crm/customer/transfer' => ['crm/customer/transfer', ['method' => 'POST']],
	// 【客户】放入公海
	'crm/customer/putInPool' => ['crm/customer/putInPool', ['method' => 'POST']],
	// 【客户】锁定
	'crm/customer/lock' => ['crm/customer/lock', ['method' => 'POST']],
	// 【客户】回款
	'crm/customer/receivables' => ['crm/customer/receivables', ['method' => 'POST']],
	// 【客户】回款计划
	'crm/customer/receivablesPlan' => ['crm/customer/receivablesPlan', ['method' => 'POST']],
	// 【客户】导出
	'crm/customer/excelExport' => ['crm/customer/excelExport', ['method' => 'POST']],
	// 【客户】导入模板下载
	'crm/customer/excelDownload' => ['crm/customer/excelDownload', ['method' => 'GET']],
	// 【客户】导入
	'crm/customer/excelImport' => ['crm/customer/excelImport', ['method' => 'POST']],
	// 【客户】 员工客户分析
	'crm/customer/statistics' => ['crm/customer/statistics', ['method' => 'POST']],
	// 【客户】合同
	'crm/customer/contract' => ['crm/customer/contract', ['method' => 'POST']],
	// 【客户】商机
	'crm/customer/business' => ['crm/customer/business', ['method' => 'POST']],
	// 【客户】删除
	'crm/customer/delete' => ['crm/customer/delete', ['method' => 'POST']],
	// 【客户】公海领取
	'crm/customer/receive' => ['crm/customer/receive', ['method' => 'POST']],
	// 【客户】分配
	'crm/customer/distribute' => ['crm/customer/distribute', ['method' => 'POST']],

	// 【客户】公海
	'crm/customer/pool' => ['crm/customer/pool', ['method' => 'POST']],
    // 【客户】意向客户库列表
    'crm/customer/intentionList' => ['crm/customer/intentionList', ['method' => 'POST']],
    // 【客户】私库捡取到意向客户库
    'crm/customer/PrivateReceive' => ['crm/customer/PrivateReceive', ['method' => 'POST']],


    //批量开票-模糊查询客户名称获取合同订单数据
    'crm/invoice/getCustomer' => ['crm/invoice/get_customer', ['method' => 'POST']],
    //批量开票-根据合同id查询可开票金额列表
    'crm/invoice/getInvoiceMoney' => ['crm/invoice/get_invoice_money', ['method' => 'POST']],
    //批量开票-获取开票列表
    'crm/invoice/index' => ['crm/invoice/index', ['method' => 'POST']],
    //批量开票-薪新增批量开票
    'crm/invoice/add' => ['crm/invoice/add', ['method' => 'POST']],
    //批量开票-修改开票单
    'crm/invoice/update' => ['crm/invoice/update', ['method' => 'POST']],
    //批量开票-获取开票详情
    'crm/invoice/detail' => ['crm/invoice/detail', ['method' => 'POST']],



	// 【线索】列表
	'crm/leads/index' => ['crm/leads/index', ['method' => 'POST']],
	// 【线索】创建
	'crm/leads/save' => ['crm/leads/save', ['method' => 'POST']],
	// 【线索】编辑
	'crm/leads/update' => ['crm/leads/update', ['method' => 'POST']],
	// 【线索】详情
	'crm/leads/read' => ['crm/leads/read', ['method' => 'POST']],
	// 【线索】转移
	'crm/leads/transfer' => ['crm/leads/transfer', ['method' => 'POST']],
	// 【线索】转化
	'crm/leads/transform' => ['crm/leads/transform', ['method' => 'POST']],
	// 【线索】导出
	'crm/leads/excelExport' => ['crm/leads/excelExport', ['method' => 'POST']],
	// 【线索】导入模板下载
	'crm/leads/excelDownload' => ['crm/leads/excelDownload', ['method' => 'GET']],
	// 【线索】导入
	'crm/leads/excelImport' => ['crm/leads/excelImport', ['method' => 'POST']],
	// 【线索】删除
	'crm/leads/delete' => ['crm/leads/delete', ['method' => 'POST']],

    // 【联系人】列表
    'crm/contacts/index' => ['crm/contacts/index', ['method' => 'POST']],
    // 【联系人】创建
    'crm/contacts/save' => ['crm/contacts/save', ['method' => 'POST']],
    // 【联系人】编辑
    'crm/contacts/update' => ['crm/contacts/update', ['method' => 'POST']],
    // 【联系人】详情
    'crm/contacts/read' => ['crm/contacts/read', ['method' => 'POST']],
    // 【联系人】联系人列表
    'crm/contacts/indexCustomer' => ['crm/contacts/indexCustomer', ['method' => 'POST']],
    // 【联系人】转移
    'crm/contacts/transfer' => ['crm/contacts/transfer', ['method' => 'POST']],
    // 【联系人】删除
    'crm/contacts/delete' => ['crm/contacts/delete', ['method' => 'POST']],
    // 【联系人】导出
    'crm/contacts/excelExport' => ['crm/contacts/excelExport', ['method' => 'POST']],
    // 【联系人】导入模板下载
    'crm/contacts/excelDownload' => ['crm/contacts/excelDownload', ['method' => 'GET']],
    // 【联系人】导入
    'crm/contacts/excelImport' => ['crm/contacts/excelImport', ['method' => 'POST']],
    // 修改核算月份
    'crm/finance/updateCalculateMonth' => ['crm/finance/update_calculate_month', ['method' => 'POST']],
    //查看退款详情
    'crm/contract/getRefundDetail' => ['crm/contract/getRefundDetail', ['method' => 'POST']],

    //获取客户信息
    'crm/expence/getCustomer' => ['crm/expence/get_customer', ['method' => 'POST']],
    //模糊检索财务编号
    'crm/expence/getFinanceCode' => ['crm/expence/get_finance_code', ['method' => 'POST']],
    //修改批量报销单
    'crm/expence/update' => ['crm/expence/update', ['method' => 'POST']],
    //获取订单信息
    'crm/expence/getContract' => ['crm/expence/get_contract', ['method' => 'POST']],
    //获取报销列表
    'crm/expence/index' => ['crm/expence/index', ['method' => 'POST']],
    //新增报销单
    'crm/expence/add' => ['crm/expence/add', ['method' => 'POST']],
    //获取报销单详情
    'crm/expence/detail' => ['crm/expence/detail', ['method' => 'POST']],

	// 【商机】列表
	'crm/business/index' => ['crm/business/index', ['method' => 'POST']],
	// 【商机】创建
	'crm/business/save' => ['crm/business/save', ['method' => 'POST']],
	// 【商机】编辑
	'crm/business/update' => ['crm/business/update', ['method' => 'POST']],
	// 【商机】详情
	'crm/business/read' => ['crm/business/read', ['method' => 'POST']],
	// 【商机】状态组
	'crm/business/statusList' => ['crm/business/statusList', ['method' => 'POST']],
	// 【商机】转移
	'crm/business/transfer' => ['crm/business/transfer', ['method' => 'POST']],
	// 【商机】相关产品
	'crm/business/product' => ['crm/business/product', ['method' => 'POST']],
	// 【商机】商机状态推进
	'crm/business/advance' => ['crm/business/advance', ['method' => 'POST']],
	// 【商机】漏斗
	'crm/business/funnel' => ['crm/business/funnel', ['method' => 'POST']],
	// 【商机】删除
	'crm/business/delete' => ['crm/business/delete', ['method' => 'POST']],

	// 【合同】列表
	'crm/contract/index' => ['crm/contract/index', ['method' => 'POST']],
	// 【合同】创建
	'crm/contract/save' => ['crm/contract/save', ['method' => 'POST']],
	// 【合同】编辑
	'crm/contract/update' => ['crm/contract/update', ['method' => 'POST']],
	// 【合同】详情
	'crm/contract/read' => ['crm/contract/read', ['method' => 'POST']],
	// 【合同】转移
	'crm/contract/transfer' => ['crm/contract/transfer', ['method' => 'POST']],
	// 【合同】审核
	'crm/contract/product' => ['crm/contract/product', ['method' => 'POST']],
	// 【合同】回款计划
	'crm/contract/receivablesPlan' => ['crm/contract/receivablesPlan', ['method' => 'POST']],
	// 【合同】回款
	'crm/contract/receivables' => ['crm/contract/receivables', ['method' => 'POST']],
	// 【合同】审核
	'crm/contract/check' => ['crm/contract/check', ['method' => 'POST']],
	// 【合同】撤销审核
	'crm/contract/revokeCheck' => ['crm/contract/revokeCheck', ['method' => 'POST']],
	// 【合同】删除
	'crm/contract/delete' => ['crm/contract/delete', ['method' => 'POST']],

	// 【产品】列表
	'crm/product/index' => ['crm/product/index', ['method' => 'POST']],
	// 【产品】创建
	'crm/product/save' => ['crm/product/save', ['method' => 'POST']],
	// 【产品】编辑
	'crm/product/update' => ['crm/product/update', ['method' => 'POST']],
	// 【产品】详情
	'crm/product/read' => ['crm/product/read', ['method' => 'POST']],
	// 【产品】上架/下架
	'crm/product/status' => ['crm/product/status', ['method' => 'POST']],
	// 【产品】导出
	'crm/product/excelExport' => ['crm/product/excelExport', ['method' => 'POST']],
	// 【产品】导入模板下载
	'crm/product/excelDownload' => ['crm/product/excelDownload', ['method' => 'GET']],
	// 【产品】导入
	'crm/product/excelImport' => ['crm/product/excelImport', ['method' => 'POST']],

	// 【回款】列表
	'crm/receivables/index' => ['crm/receivables/index', ['method' => 'POST']],
	// 【回款】创建
	'crm/receivables/save' => ['crm/receivables/save', ['method' => 'POST']],
	// 【回款】编辑
	'crm/receivables/update' => ['crm/receivables/update', ['method' => 'POST']],
	// 【回款】详情
	'crm/receivables/read' => ['crm/receivables/read', ['method' => 'POST']],
	// 【回款】统计柱状图
	'crm/receivables/statistics' => ['crm/receivables/statistics', ['method' => 'POST']],
	// 【回款】统计列表
	'crm/receivables/statisticList' => ['crm/receivables/statisticList', ['method' => 'POST']],
	// 【回款】删除
	'crm/receivables/delete' => ['crm/receivables/delete', ['method' => 'POST']],
	// 【回款】审核
	'crm/receivables/check' => ['crm/receivables/check', ['method' => 'POST']],
	// 【回款】撤销审核
	'crm/receivables/revokeCheck' => ['crm/receivables/revokeCheck', ['method' => 'POST']],

	// 【回款计划】列表
	'crm/receivables_plan/index' => ['crm/receivables_plan/index', ['method' => 'POST']],
	// 【回款计划】创建
	'crm/receivables_plan/save' => ['crm/receivables_plan/save', ['method' => 'POST']],
	// 【回款计划】编辑
	'crm/receivables_plan/update' => ['crm/receivables_plan/update', ['method' => 'POST']],
	// 【回款计划】详情
	'crm/receivables_plan/read' => ['crm/receivables_plan/read', ['method' => 'POST']],
	// 【回款计划】删除
	'crm/receivables_plan/delete' => ['crm/receivables_plan/delete', ['method' => 'POST']],

	// 【相关团队】列表
	'crm/setting/team' => ['crm/setting/team', ['method' => 'POST']],
	// 【相关团队】创建
	'crm/setting/teamSave' => ['crm/setting/teamSave', ['method' => 'POST']],
	// 【客户保护规则】保存
	'crm/setting/config' => ['crm/setting/config', ['method' => 'POST']],
	// 【客户保护规则】详情
	'crm/setting/configData' => ['crm/setting/configData', ['method' => 'POST']],
	// 【合同到期提醒】
	'crm/setting/contractDay' => ['crm/setting/contractDay', ['method' => 'POST']],

	// 【商机状态组】列表
	'crm/business_status/type' => ['crm/business_status/type', ['method' => 'POST']],
	// 【商机状态组】创建
	'crm/business_status/save' => ['crm/business_status/save', ['method' => 'POST']],
	// 【商机状态组】编辑
	'crm/business_status/update' => ['crm/business_status/update', ['method' => 'POST']],
	// 【商机状态组】详情
	'crm/business_status/read' => ['crm/business_status/read', ['method' => 'POST']],
	// 【商机状态组】停用
	'crm/business_status/enables' => ['crm/business_status/enables', ['method' => 'POST']],
	// 【商机状态组】删除
	'crm/business_status/delete' => ['crm/business_status/delete', ['method' => 'POST']],

	// 【产品分类】列表
	'crm/product_category/index' => ['crm/product_category/index', ['method' => 'POST']],
	// 【产品分类】创建
	'crm/product_category/save' => ['crm/product_category/save', ['method' => 'POST']],
	// 【产品分类】编辑
	'crm/product_category/update' => ['crm/product_category/update', ['method' => 'POST']],
	// 【产品分类】删除
	'crm/product_category/delete' => ['crm/product_category/delete', ['method' => 'POST']],

	// 【业绩目标】
	'crm/achievement/save' => ['crm/achievement/save', ['method' => 'POST']],
	'crm/achievement/update' => ['crm/achievement/update', ['method' => 'POST']],
	'crm/achievement/index' => ['crm/achievement/index', ['method' => 'POST']],
	'crm/achievement/datalist' => ['crm/achievement/datalist', ['method' => 'POST']],
	'crm/achievement/indexForuser' => ['crm/achievement/indexForuser', ['method' => 'POST']],

	// 【工作台】业绩指标
	'crm/index/achievementData' => ['crm/index/achievementData', ['method' => 'POST']],
	// 【工作台】销售漏斗
	'crm/index/funnel' => ['crm/index/funnel', ['method' => 'POST']],
	// 【工作台】销售趋势
	'crm/index/saletrend' => ['crm/index/saletrend', ['method' => 'POST']],
	// 【工作台】查重
	'crm/index/search' => ['crm/index/search', ['method' => 'POST']],

	// 【代办事项】今日需联系
	'crm/message/todayCustomer' => ['crm/message/todayCustomer', ['method' => 'POST']],
	'crm/message/num' => ['crm/message/num', ['method' => 'POST']],
	'crm/message/followleads' => ['crm/message/followleads', ['method' => 'POST']],
	'crm/message/followcustomer' => ['crm/message/followcustomer', ['method' => 'POST']],
	'crm/message/checkcontract' => ['crm/message/checkcontract', ['method' => 'POST']],
	'crm/message/checkreceivables' => ['crm/message/checkreceivables', ['method' => 'POST']],
	'crm/message/remindreceivablesplan' => ['crm/message/remindreceivablesplan', ['method' => 'POST']],
	'crm/message/endContract' => ['crm/message/endContract', ['method' => 'POST']],

	// 【客户】标记跟进
	'crm/customer/setFollow' => ['crm/customer/setFollow', ['method' => 'POST']],
	'crm/leads/setFollow' => ['crm/leads/setFollow', ['method' => 'POST']],

	// 【跟进记录类型设置】列表
	'crm/setting/recordList' => ['crm/setting/recordList', ['method' => 'POST']],
	// 【跟进记录类型设置】记录类型编辑
	'crm/setting/recordEdit' => ['crm/setting/recordEdit', ['method' => 'POST']],
	// 【客户】联系人商机关联/取消关联
	'crm/contacts/relation' => ['crm/contacts/relation', ['method' => 'POST']],

	// 【公海】数据统计 导出
	'crm/customer/poolExcelExport' => ['crm/customer/poolExcelExport', ['method' => 'POST']],


	// 【跟进记录类型设置】列表
	'crm/setting/recordList' => ['crm/setting/recordList', ['method' => 'POST']],
	// 【跟进记录类型设置】记录类型编辑
	'crm/setting/recordEdit' => ['crm/setting/recordEdit', ['method' => 'POST']],
	// 【客户】联系人商机关联/取消关联
	'crm/contacts/relation' => ['crm/contacts/relation', ['method' => 'POST']],

	// 【公海】数据统计 导出
	'crm/customer/poolExcelExport' => ['crm/customer/poolExcelExport', ['method' => 'POST']],

    // MISS路由
	'__miss__'  => 'admin/base/miss',
    //lina 新增 start
    //确认函列表
    'crm/confirmation/index' => ['crm/confirmation/index', ['method' => 'POST']],
    //确认函详情
    'crm/confirmation/read' => ['crm/confirmation/read', ['method' => 'POST']],
    //新增确认函
    'crm/confirmation/save' => ['crm/confirmation/save', ['method' => 'POST']],
    //修改确认函
    'crm/confirmation/update' => ['crm/confirmation/update', ['method' => 'POST']],
    //删除确认函
    'crm/confirmation/del' => ['crm/confirmation/del', ['method' => 'POST']],
    //添加确认函类目
    'crm/confirmation/addCategory' => ['crm/confirmation/addCategory', ['method' => 'POST']],
    //查看确认函类目
    'crm/confirmation/readCategory' => ['crm/confirmation/readCategory', ['method' => 'POST']],
    //删除确认函类目
    'crm/confirmation/delCategory' => ['crm/confirmation/delCategory', ['method' => 'POST']],
    //编辑确认函类目
    'crm/confirmation/updateCategory' => ['crm/confirmation/updateCategory', ['method' => 'POST']],
    //确认函类目排序
    'crm/confirmation/setOrderBy' => ['crm/confirmation/setOrderBy', ['method' => 'POST']],
    //根据合同选中产品查找绑定确认函
    'crm/confirmation/getDataByCheckedId' => ['crm/confirmation/getDataByCheckedId', ['method' => 'GET']],
    //合同确认函详情
    'crm/contract_confirmation/read' => ['crm/contract_confirmation/read', ['method' => 'GET']],
    //修改合同确认函
    'crm/contract_confirmation/update' => ['crm/contract_confirmation/update', ['method' => 'POST']],
    // 【成交客户库】列表
   /* 'crm/okcustomer/index' => ['crm/okcustomer/index', ['method' => 'POST']],
    // 【成交客户库】详情
    'crm/okcustomer/read' => ['crm/okcustomer/read', ['method' => 'POST']],*/
    //添加开票列表
    'crm/invoicing/index' => ['crm/invoicing/index', ['method' => 'POST']],
    //添加开票申请
    'crm/invoicing/save' => ['crm/invoicing/save', ['method' => 'POST']],
    //查看开票申请
    'crm/invoicing/read' => ['crm/invoicing/read', ['method' => 'POST']],
    //删除开票申请
    'crm/invoicing/del' => ['crm/invoicing/del', ['method' => 'POST']],
    //添加开票列表
    'crm/examine/index' => ['crm/examine/index', ['method' => 'POST']],

    //【成交客户库】列表
    'crm/okcustomer/index' => ['crm/customer/okindex', ['method' => 'POST']],
    //【私库客户】列表
    'crm/privatelist/index' => ['crm/customer/privateList', ['method' => 'POST']],
    //【成交客户库】删除
    'crm/okcustomer/delete' => ['crm/customer/del_ok', ['method' => 'POST']],
    // 【公海】导入
    'crm/customer/leading' => ['crm/customer/leading', ['method' => 'POST']],

    // 【跟进记录】外勤金额
    'crm/wo/price' => ['crm/wo/price', ['method' => 'POST']],

    //代办订单状态
    'crm/setting/deputyList' => ['crm/setting/deputyList', ['method' => 'POST']],
    //新增代办记录
    'crm/record/deputysave' => ['admin/record/deputysave', ['method' => 'POST']],
    //工单库
    'crm/wo/index' => ['crm/contract/workindex', ['method' => 'POST']],
    //工单库
    'crm/wo/read' => ['crm/contract/read', ['method' => 'POST']],
    //管家二次确认是否完结
    'crm/wo/isend' => ['crm/contract/isend', ['method' => 'POST']],
    //待办数据统计
    'crm/contract/deputystat' => ['crm/contract/deputystat', ['method' => 'POST']],
    //完结库
    'crm/complete/index' => ['crm/contract/okindex', ['method' => 'POST']],
    //管家捡取工单
    'crm/wo/picking' => ['crm/contract/picking', ['method' => 'POST']],



    // 【记账】流转记账板块
    'crm/wo/roam' => ['crm/contract/roam', ['method' => 'POST']],
    // 【记账】记账板块列表
    'crm/accounting/index' => ['crm/accounting/index', ['method' => 'POST']],
    // 【记账】记账板块捡取
    'crm/accounting/picking' => ['crm/accounting/picking', ['method' => 'POST']],
    // 【记账】记账板块分配
    'crm/accounting/allocation' => ['crm/accounting/allocation', ['method' => 'POST']],
    // 【记账】记账板块开始服务时间填写
    'crm/accounting/startService' => ['crm/accounting/startService', ['method' => 'POST']],
    // 【记账】记账板块会计列表
    'crm/accounting/userlist' => ['crm/accounting/userlist', ['method' => 'POST']],
    // 【记账】记账板块填写工本费
    'crm/accounting/cost' => ['crm/accounting/cost', ['method' => 'POST']],
    // 【记账】记账板块做账
    'crm/accounting/make' => ['crm/accounting/make', ['method' => 'POST']],
    // 【记账】记账板块做账列表
    'crm/accounting/makelist' => ['crm/accounting/makelist', ['method' => 'POST']],
    // 【记账】记账板块做账审核
    'crm/accounting/examine' => ['crm/accounting/examine', ['method' => 'POST']],

    // 【外勤】列表
    'crm/personnel/index' => ['crm/personnel/index', ['method' => 'POST']],
    // 【外勤】分配外勤（管家）
    'crm/contract/assign' => ['crm/contract/assign', ['method' => 'POST']],
    // 【外勤】外勤接收
    'crm/personnel/fieldreception' => ['crm/personnel/fieldreception', ['method' => 'POST']],
    // 【外勤】外勤操作记录
    'crm/personnel/recordelog' => ['crm/personnel/recordelog', ['method' => 'POST']],
    // 【外勤】填写外勤提成（管家）
    'crm/personnel/commission' => ['crm/personnel/commission', ['method' => 'POST']],
    // 【外勤】审核外勤完结记录（管家）
    'crm/personnel/examine' => ['crm/personnel/examine', ['method' => 'POST']],
    // 【外勤】外勤列表
    'crm/assignfield/userlist' => ['crm/assignfield/userlist', ['method' => 'POST']],
    // 【外勤】外勤填写跟进记录
    'crm/personnel/addflow' => ['crm/personnel/addflow', ['method' => 'POST']],
    // 【外勤】外勤跟进记录列表
    'crm/personnel/flowlist' => ['crm/personnel/flowlist', ['method' => 'POST']],
    // 【外勤】查找合同分配外勤
    'crm/personnel/getpersonnel' => ['crm/personnel/getpersonnel', ['method' => 'POST']],
    //外勤-导出
    'crm/personnel/export' => ['crm/personnel/export', ['method' => 'POST']],
    //外勤-转移办件到另一个外勤
    'crm/personnel/transfer' => ['crm/personnel/transfer', ['method' => 'POST']],
    //工单-获取外勤分配记录
    'crm/personnel/allocation_record' => ['crm/personnel/allocationRecord', ['method' => 'POST']],
    //查找当月审核通过回款金额
    'crm/receivables/month' => ['crm/receivables/month', ['method' => 'POST']],

    //-------------------财务start-------------------------
    //财务列表
    'crm/finance/index' => ['crm/finance/index', ['method' => 'POST']],
    //财务列表导出数据
    'crm/finance/export' => ['crm/finance/export', ['method' => 'POST']],
    //-------------------财务end-------------------------
];